package com.xgsm.Fmmall.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
/*
 * ApiModel用在接口返回的实体类上，进行说明
 * */
@ApiModel(value = "ResultVo对象", description = "封装了接口返回给前端的数据对象")
public class ResultVo {

    //    响应给前端的状态码
    @ApiModelProperty(value = "响应状态码", dataType = "int")
    private int code;

    //    传递给前端的提示信息
    @ApiModelProperty(value = "相应提示信息", dataType = "string")
    private String msg;

    //    响应给前端的数据
    @ApiModelProperty(value = "响应的数据表", dataType = "Object")
    private Object data;
}
